
module samples.io.stream;

import dotmars.io.stream;
import dotmars.io.memorystream;
import dotmars.io.filestream;
import dotmars.io.bufferedstream;

void main()
{
	const ubyte[10] s1 = [0,1,2,3,4,5,6,7,8,9];

	auto fs = new FileStream("fs.dat");
	fs.write(s1);

	auto ms = new MemoryStream;
	ms.write(s1);

	auto bs = new BufferedStream(fs);
	bs.write(s1);
}
